#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Wjy
import logging

from flask import Flask, request, jsonify

from core.basics import BasicsWork

app = Flask(__name__)


@app.route("/", methods=["POST"])
def index():
    data = request.data
    return jsonify(BasicsWork(data, logging)())


if __name__ == '__main__':
    app.run(debug=True)
